package com.example.myapplication.food_message;


import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class FoodInfo {

    //("菜品ID, uuid")
    private String foodId;

    //("商品种类别表ID, uuid")
    private String categoryId;

    //("商品种类别名称")
    private String categoryName;

    //("商户ID")
    private String merchantId;

    //("门店id, uuid")
    private String storeId;

    //("菜谱类型：0 单品 1 套餐")
    private Integer type;

    //("菜品名称")
    private String foodName;

    //("菜品状态 0 已上架，1 已下架，2 储备")
    private Integer status;

    //("图片地址")
    private String imgUrl;

    //("价格")
    private BigDecimal price;

    //("会员价格")
    private BigDecimal vipPrice;

    //("上线时间")
    private Date startTime;

    //("下线时间")
    private Date endTime;

    //("描述")
    private String description;

    //("正序，默认0")
    private Integer sort;

    //("计价类型 0 称重，1 线上")
    private Integer valuationType;

    //("餐盒费")
    private BigDecimal dishwarePrice;

    //("称重类型 0 按克(每50g) 1 按份")
    private Integer weighType;

    //("按份时，一份的重量")
    private BigDecimal portionWeight;

    //(" 按份时，开始计价重量")
    private BigDecimal initValWeight;

    //("是否删除：0 正常， 1 删除")
    private Integer delFlag;

    //("创建人")
    private String createBy;

    //("创建时间")
    private Date createTime;

    //("更新人")
    private String updateBy;

    //("最后一次更新时间")
    private Date updateTime;

    //("备注")
    private String remark;


    private int foodNumber;

    public int getFoodNumber() {
        return foodNumber;
    }

    public void setFoodNumber(int foodNumber) {
        this.foodNumber = foodNumber;
    }

    public void deleteFoodNumber(int deleteCount) {
        this.foodNumber = this.foodNumber - deleteCount;
        if (this.foodNumber < 0) {
            this.foodNumber = 0;
        }
    }


    public String getFoodId() {
        return foodId;
    }

    public void setFoodId(String foodId) {
        this.foodId = foodId;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getFoodName() {
        return foodName;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getVipPrice() {
        return vipPrice;
    }

    public void setVipPrice(BigDecimal vipPrice) {
        this.vipPrice = vipPrice;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getValuationType() {
        return valuationType;
    }

    public void setValuationType(Integer valuationType) {
        this.valuationType = valuationType;
    }

    public BigDecimal getDishwarePrice() {
        return dishwarePrice;
    }

    public void setDishwarePrice(BigDecimal dishwarePrice) {
        this.dishwarePrice = dishwarePrice;
    }

    public Integer getWeighType() {
        return weighType;
    }

    public void setWeighType(Integer weighType) {
        this.weighType = weighType;
    }

    public BigDecimal getPortionWeight() {
        return portionWeight;
    }

    public void setPortionWeight(BigDecimal portionWeight) {
        this.portionWeight = portionWeight;
    }

    public BigDecimal getInitValWeight() {
        return initValWeight;
    }

    public void setInitValWeight(BigDecimal initValWeight) {
        this.initValWeight = initValWeight;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 套餐中的单品组合列表
     */
    /*
    private List<ComboDishGroupInfo> comboDishGroupInfoList;

    public List<ComboDishGroupInfo> getComboDishGroupInfoList() {
        return comboDishGroupInfoList;
    }

    public void setComboDishGroupInfoList(List<ComboDishGroupInfo> comboDishGroupInfoList) {
        this.comboDishGroupInfoList = comboDishGroupInfoList;
    }

     */
}
